package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Analysis{

    private Long id;
    /**
     * 日期
     */
    private Date recordDate;
    /**
     * 新注册用户数
     */
    private Integer numRegistered = 0;
    /**
     * 活跃用户数
     */
    private Integer numActive = 0;
    /**
     * 登陆次数
     */
    private Integer numLogin = 0;
    /**
     * 次日留存用户数
     */
    private Integer numRetention1d = 0;
    /**
     * 过去7天的活跃用户
     */
    @TableField(exist = false)
    private Integer activePassWeek = 0;
    /**
     * 过去30天的活跃用户
     */
    @TableField(exist = false)
    private Integer activePassMonth = 0;
    /**
     * 今日新增用户涨跌率，单位百分数，正数为涨，负数为跌
     */
    @TableField(exist = false)
    private Integer newUsersTodayRate = 0;
    /**
     * 今日登录次数涨跌率，单位百分数，正数为涨，负数为跌
     */
    @TableField(exist = false)
    private Integer loginTimesTodayRate = 0;
    /**
     * 今日活跃用户涨跌率，单位百分数，正数为涨，负数为跌
     */
    @TableField(exist = false)
    private Integer activeUsersTodayRate = 0;


    private Date created;
}